package com.ex03_03;

import javax.security.auth.PrivateCredentialPermission;

import android.app.Activity;
import android.content.res.ColorStateList;
import android.content.res.Resources;
import android.graphics.Color;
import android.graphics.drawable.Drawable;
import android.os.Bundle;
import android.widget.TextView;

public class EX03_03Activity extends Activity {
    
	private TextView mTextView01;
	private TextView mTextView02; 

	/** Called when the activity is first created. */
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.main);
        mTextView01 = (TextView)findViewById(R.id.mTextView01);
        mTextView01.setText("i'm application drawable background color");
        
        Resources resources = getBaseContext().getResources();
        Drawable hippoDrawable = resources.getDrawable(R.drawable.white);
        mTextView01.setBackgroundDrawable(hippoDrawable);
        
        mTextView02 = (TextView)findViewById(R.id.mTextView02);
        mTextView02.setTextColor(Color.MAGENTA);
    }
}